package com.park.carpark.mapper;


import com.park.carpark.pojo.Parking_Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface ParkMapper {

    // 车辆入库停车登记
    int addCarMsg(Parking_Register park);

    //车辆入库信息显示
    List<Parking_Register> showParkMsg();

    //查询单个车辆信息
    Parking_Register showOutMsg(@Param("car_ID") String car_ID);

    //出库登记
    int updateMsg(Parking_Register park);

    //修改停放金额
    int updatePrice(Parking_Register park);

    //得到时间差  （用来计算金额）
    Parking_Register getTime(Parking_Register park);




}
